﻿//#include <stdio.h>
//#include <string.h>
//int main() {
//    char str[26 * 2500 + 1];
//    int victory = 0, defeat = 0;
//    fgets(str, 26 * 2500 + 1, stdin);
//    for (int i = 0; str[i] != 'E'; i++) {
//        if (victory + defeat == 11) {
//            fprintf(stdout, "%d:%d\n", victory, defeat);
//            victory = 0;
//            defeat = 0;
//        }
//        if (str[i] == 'W') {
//            victory++;
//        }
//        if (str[i] == 'L') {
//            defeat++;
//        }
//    }
//    if (victory && defeat) {
//        fprintf(stdout, "%d:%d\n", victory, defeat);
//        victory = 0;
//        defeat = 0;
//    }
//    puts("");
//    for (int i = 0; str[i] != 'E'; i++) {
//        if (victory + defeat == 21) {
//            fprintf(stdout, "%d:%d\n", victory, defeat);
//            victory = 0;
//            defeat = 0;
//        }
//        if (str[i] == 'W') {
//            victory++;
//        }
//        if (str[i] == 'L') {
//            defeat++;
//        }
//    }
//    if (victory && defeat)
//        fprintf(stdout, "%d:%d\n", victory, defeat);
//    return 0;
//}

//#include <stdio.h>
//#include <string.h>
//int main() {
//    char nums[26];
//    char str[26 * 2501];
//    int victory = 0, defeat = 0, x = 1, j = 0;
//    while (x) {
//        fgets(nums, 26, stdin);
//        for (int i = 0; i < strlen(nums); i++) {
//            if (nums[i] != '\n')
//                str[j++] = nums[i];
//            if (nums[i] == 'E') {
//                x = 0;
//                break;
//            }
//        }
//    }
//    for (int i = 0; str[i] != 'E'; i++) {
//        if (victory + defeat == 11) {
//            fprintf(stdout, "%d:%d\n", victory, defeat);
//            victory = 0;
//            defeat = 0;
//        }
//        if (str[i] == 'W') {
//            victory++;
//        }
//        if (str[i] == 'L') {
//            defeat++;
//        }
//    }
//    if (victory || defeat) {
//        fprintf(stdout, "%d:%d\n", victory, defeat);
//        victory = 0;
//        defeat = 0;
//    }
//    puts("");
//    for (int i = 0; str[i] != 'E'; i++) {
//        if (victory + defeat == 21) {
//            fprintf(stdout, "%d:%d\n", victory, defeat);
//            victory = 0;
//            defeat = 0;
//        }
//        if (str[i] == 'W') {
//            victory++;
//        }
//        if (str[i] == 'L') {
//            defeat++;
//        }
//    }
//    if (victory || defeat)
//        fprintf(stdout, "%d:%d\n", victory, defeat);
//    return 0;
//}